<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>BFC测试</title>


    <style>
        .box{
            width: 300px;
            height: 100px;
            background-color: blueviolet;
            margin: 50px;
        }

        .container{
            border: 1px solid red;

            /* 加了这个属性后，.container就可以把.box撑开 */
            /* overflow: hidden; */
        }

        .right{
            height: 200px;
            background-color: coral;
        }
    </style>

</head>

<body>
    
    <div class="container">
        <div class="box">111</div>
        <div class="box">222</div>
    </div>

</body>

</html>